<? include "../server_config.php";

$input_pwd = $_POST['pwd'];

$sql = "SELECT password('$input_pwd');";
$result = mysql_query($sql,$connect);
$row = mysql_fetch_row($result);

//echo $sql;

$input_pwd = $row[0];

$sql = "SELECT * FROM ud_pw ;";
$result = mysql_query($sql,$connect);
$row = mysql_fetch_row($result);

$db_pwd = $row[0];

//echo $db_pwd." / ".$input_pwd;
if($input_pwd != $db_pwd)
{
?>
<script>
	alert('비밀번호가 올바르지 않습니다.');
	history.back();
</script>
<?
	return;
}


$_SESSION['admin']=true;

?>
	<script>
		location.href="about.php";
	</script>
<?


?>




